package com.xdjmall.entity;

import java.time.LocalDate;

//订单
public class Order {
    //订单表主键id
    private Integer orderId;
    //订单号
    private String orderNo;
    //用户主键id
    private Integer userId;
    //订单总价
    private Integer totalPrice;
    //支付状态:0.未支付,1.支付成功,-1:支付失败
    private Integer payStatus;
    //0.无 1.支付宝支付 2.微信支付
    private Integer payType;
    //支付时间
    private LocalDate payTime;
    //订单状态:0.待支付 1.已支付 2.配货完成 3:出库成功
    //4.交易成功 -1.手动关闭 -2.超时关闭 -3.商家关闭
    private Integer orderStatus;
    //订单body
    private String extraInfo;
    //收货人收货地址
    private String userAddress;
    //删除标识字段(0-未删除 1-已删除)
    private Boolean isDeleted;
    //创建时间
    private LocalDate createTime;
    //最新修改时间
    private LocalDate updateTime;
	public Integer getOrderId() {
		return orderId;
	}
	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}
	public String getOrderNo() {
		return orderNo;
	}
	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public Integer getTotalPrice() {
		return totalPrice;
	}
	public void setTotalPrice(Integer totalPrice) {
		this.totalPrice = totalPrice;
	}
	public Integer getPayStatus() {
		return payStatus;
	}
	public void setPayStatus(Integer payStatus) {
		this.payStatus = payStatus;
	}
	public Integer getPayType() {
		return payType;
	}
	public void setPayType(Integer payType) {
		this.payType = payType;
	}
	public LocalDate getPayTime() {
		return payTime;
	}
	public void setPayTime(LocalDate payTime) {
		this.payTime = payTime;
	}
	public Integer getOrderStatus() {
		return orderStatus;
	}
	public void setOrderStatus(Integer orderStatus) {
		this.orderStatus = orderStatus;
	}
	public String getExtraInfo() {
		return extraInfo;
	}
	public void setExtraInfo(String extraInfo) {
		this.extraInfo = extraInfo;
	}
	public String getUserAddress() {
		return userAddress;
	}
	public void setUserAddress(String userAddress) {
		this.userAddress = userAddress;
	}
	public Boolean getIsDeleted() {
		return isDeleted;
	}
	public void setIsDeleted(Boolean isDeleted) {
		this.isDeleted = isDeleted;
	}
	public LocalDate getCreateTime() {
		return createTime;
	}
	public void setCreateTime(LocalDate createTime) {
		this.createTime = createTime;
	}
	public LocalDate getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(LocalDate updateTime) {
		this.updateTime = updateTime;
	}
	@Override
	public String toString() {
		return "Order [orderId=" + orderId + ", orderNo=" + orderNo + ", userId=" + userId + ", totalPrice="
				+ totalPrice + ", payStatus=" + payStatus + ", payType=" + payType + ", payTime=" + payTime
				+ ", orderStatus=" + orderStatus + ", extraInfo=" + extraInfo + ", userAddress=" + userAddress
				+ ", isDeleted=" + isDeleted + ", createTime=" + createTime + ", updateTime=" + updateTime + "]";
	}
}